package com.sxpi.chapter01.producta;

import com.sxpi.chapter01.Chair;
import com.sxpi.chapter01.Desk;
import com.sxpi.chapter01.factory.FamilyFactory;
import com.sxpi.chapter01.productb.PiasticChair;
import com.sxpi.chapter01.productb.WoodeChair;

/**
 * @Author: 董伟豪
 * @Date: 2023/2/5 9:07
 */
public class PlasticFamilyFactoryImpl implements FamilyFactory {
    @Override
    public Desk createDesk() {
        return new PiasticDesk();
    }

    @Override
    public Chair createChair() {
        return new PiasticChair();
    }
}
